<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>书摘 - 夜读书</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
    <meta name="format-detection" content="telephone=no">
    <meta name="description" content="夜读书全部图书列表">
    <meta name="keywords" content="夜读书">
    <link rel="stylesheet" href="{{ asset('/style/css/faxian.css') }}">
    <script src="{{ asset('/scripts/jquery/jquery-1.11.3.min.js') }}"></script>
</head>
<body class="ns-cricle-bg ">
    <div id="container">
        <div class="mod-card fixed">
            <div class="" style="padding: 10px 10px;">
            <div class="" style="float:left;">
               <img style="width:60px;height: 75px;" class="cover" src="{{url($books->bimg)}}">
            </div>
            <div class="" style="padding-left: 65px;">
                <p style="padding:5px 0;font-size: 17px;font-weight: 600;">《{{$books->book_name}}》的书摘</p>
                <p class="">
                    {{$books->zuozhe}} / {{$books->chubanshe}}</p>
            </div>
        </div>
        </div>
        <div class="mod-post">
            @foreach($shuzhailists as $shuzhailist)
            <div class="mod-post-list-item">
                <div class="mod-feed-header ">
                    <div class="mod-avatar">
                        <div class="G-img-wrap">
                            <a class="aw-user-name" href="{{url('u')}}/{{$shuzhailist->users->uid}}">
                            @if($shuzhailist->users->avatar_file_min!="")
                                <img src="http://www.yedushu.com/{{ $shuzhailist->users->avatar_file_min }}">
                            @else
                                <img src="http://www.yedushu.com/usersface/default/avatar-min.png">
                            @endif
                            </a>
                        </div>
                    </div>                    
                    <div class="usr-name">
                        <span class="name flex-wrap">
                            <p class="username">{{$shuzhailist->users->user_name}}</p>
                            <p class="ty"><span class="time">{{date('Y-m-d H:i',$shuzhailist->add_time)}}</span> <span class="yue">阅:{{$shuzhailist->click}}</span></p>
                        </span>
                    </div>                   
                </div>
                <div class="mod-feed-content">{!!$shuzhailist->content!!}</div>
                @if($shuzhailist->imglist != null)
                <div class="mod-feed-img">
                    @foreach($shuzhailist->imglist as $img)
                    <div class="g-img-item">
                        <img src="{{url('shuzhai_img/' . $img)}}">
                    </div>
                    @endforeach
                    @if($shuzhailist->imgcount > 3)
                    <span class="num">{{$shuzhailist->imgcount}}图</span>
                    @endif
                </div>
                @endif
                <div class="mod-feed-footer">
                    <div class="opt-item">
                        <span class="">留言</span>
                        <span>0</span>
                    </div>
                    <div class="opt-item">
                        <span class="">点赞</span>
                        <span>0</span>
                    </div>
                </div>
            </div>
            @endforeach
            <a href="{{url('shuzhai/pubshuzhai/' .  $bookid)}}"><div class="creater-publish v3-1"></div></a>
        </div>
    </div>
</body>
</html>